#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>

int main()
{
	FILE* fp1 = fopen("bite", "w");
	char ws[] = "linux so easy!";
	char rs[128] = {0};
	if(fp1 == NULL)
	{
		perror("fpoen");
		return 1;
	}
	else
	{
		fwrite(ws, sizeof(char), strlen(ws), fp1);
		fclose(fp1);
	}
	FILE* fp2 = fopen("bite", "r");
	if (fp2 == NULL)
	{
		perror("fpoen");
		return 1;
	}
	else
	{
		fread(rs, sizeof(char), strlen(ws), fp2);

		printf("%s\n", rs);
		fclose(fp2);
	}

	return 0;
}